const mongoose = require('mongoose')
const schema = mongoose.Schema({
  create_time: { type: Number, required: true }, // 创建时间
  name: { type: String, default: '' }, // 名称
  icon: { type: String, default: '' }, // 图标(支持svg)
  url: { type: String, default: '' }, // 跳转链接
  skip: { type: Boolean, default: false }, // 是否跳转
  external: { type: Boolean, default: false }, // 是否外链跳转
  new_tab: { type: Boolean, default: false }, // 是否新窗口跳转
  parentId: { type: String, default: '' }, //
  desc: { type: String, default: '' } //
})

module.exports = mongoose.model('MenuList', schema, 'menu-list')
